package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 员工信息表
 * </p>
 * @author liuy
 * @since
 */
@TableName("sys_dept_emp")
@Data
public class DeptEmp implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;
    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;
    /**
     * 钉钉userid标识
     */
    @TableField("dd_user_id")
    private String ddUserId;

    /**
     * 员工id
     */
    @TableField("emp_id")
    private Integer empId;

    /**
     * 删除标记 1 删除 0未删除
     */
    @TableField("del_flag")
    private String delFlag;


    public DeptEmp() {

    }

    public DeptEmp(Long deptId, String ddUserId, Integer empId) {
        this.deptId = deptId;
        this.ddUserId = ddUserId;
        this.empId = empId;
        this.delFlag = "0";
    }
}
